package com.project.class3_29;

public class StudentBean {
    /**学生编号*/
    private String code;
    /**学生电话*/
    private String phone;
    /**学生名字*/
    private String name;
    /**学生学历*/
    private String edu;
    /**学生年龄*/
    private int age;

    public StudentBean() {
    }

    public StudentBean(String code, String phone, String name, String edu, int age) {
        this.code = code;
        this.phone = phone;
        this.name = name;
        this.edu = edu;
        this.age = age;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEdu() {
        return edu;
    }

    public void setEdu(String edu) {
        this.edu = edu;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "StudentBean{" +
                "code='" + code + '\'' +
                ", phone='" + phone + '\'' +
                ", name='" + name + '\'' +
                ", edu='" + edu + '\'' +
                ", age=" + age +
                "\n";
    }
}
